package org.WhyMCA.Utils;

/**
@author Danilo '' Riso >> danilo DOT riso AT gmail DOT com
* @author Androidiani Dev Team
* @version 1.0
*/


import android.content.Context;
import android.content.res.Resources;
import android.graphics.Bitmap;

/**
 * Serve per evitare di spawnare troppi context facendoli rimanere vivi in varie classi
 * Va usato su tutte le onCreate.
 * 
 */
public class Global {
	
	private static Context ctx;
	
	public static void setCtx(Context ctx) {
		Global.ctx = ctx;
	}

	public static Context getCtx() {
		return ctx;
	}
	public static Resources getResources() {
		return Global.getCtx().getResources();
	}
		
}
